package com.yefcion.survey.controller;

import com.yefcion.survey.service.NoteConvertService;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Service
@RestController
public class EasyController {

    @Resource
    private NoteConvertService noteConvertService;

    @ApiOperation("多看笔记->微信读书笔记")
    @PostMapping("duokan-to-weread")
    public void duokanToWeread(@RequestParam("srcFilePathName") String srcFilePathName,
                               @RequestParam("dstFilePathName") String dstFilePathName) {
        noteConvertService.duokanToWeread(srcFilePathName, dstFilePathName);
    }

}
